package com.gjy.droos.controller;

import com.gjy.droos.module.Order;
import com.gjy.droos.service.OrderFeeService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-07-01 14:37:26
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Resource
    private OrderFeeService orderFeeService;

    @PostMapping("/calculate")
    public Order calculateOrderFee(@RequestBody Order order) {
        return orderFeeService.calculateFee(order);
    }

}
